package com.ailesson.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;
import com.ailesson.order.entity.CouponInfoEntity;
import com.ailesson.order.model.req.CouponInfoQueryReq;
import com.ailesson.order.model.req.CouponInfoReq;
import com.ailesson.order.model.reply.CouponInfoReply;

/**
 * 优惠券信息
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-12 21:32:51
 */
public interface CouponInfoService extends IService<CouponInfoEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(CouponInfoQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    CouponInfoReply info(Long id);

    /**
     * 更新信息
     * @param couponInfo
     */
    void update(CouponInfoReq couponInfo);

    /**
     * 新增
     * @param couponInfo
     */
    Long add(CouponInfoReq couponInfo);

    void updateCouponInfoUseStatus(Long couponUseId, Long id);
}

